package cn.tedu.sp09.feign;

import cn.tedu.sp01.pojo.Item;
import cn.tedu.sp01.util.JsonResult;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 张琪
 * @date 2020/12/22
 * @describe
 */
@Component
public class ItemClientFB implements ItemClient{

    @Override
    public JsonResult<List<Item>> getItems(String orderId) {
        return JsonResult.err().msg("返回物品列表失败");
    }

    @Override
    public JsonResult<?> decreaseNumber(List<Item> items) {
        return JsonResult.err().msg("物品减少失败");
    }
}
